 /**
 * @数组初始化
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int array[10] = {[0] = 0, [1] = 1, [2] = 4, [4] = 16, [3] = 9};
	int i;

	for (i=5; i<10; i++) {
		array[i] = i * i;
	}

	for (i=0; i<10; i++) {
		printf("array[%d] = %d\n", i, array[i]);
	}

	return 0;
}
